﻿//----------------------------------------------------------------------------
//  Copyright (C) 2004-2013 by EMGU. All rights reserved.       
//----------------------------------------------------------------------------

using Emgu.CV;
using Emgu.CV.CvEnum;
using Emgu.CV.Structure;
using Emgu.CV.UI;
using helloworld2;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Runtime.InteropServices;
using System.Windows.Forms;


namespace helloworld2
{
    class Program
    {

        static void Main(string[] args)
        {
            //Application.Run(new GUI());
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new GUI());





            //Image<Gray, float> img2 = img1.Convert<Gray, float>(); convert to grayscale
            //Matrix<float> src = new Matrix<float>(img2.Width, img2.Height); Create matrix
            //CvInvoke.cvConvert(src, img2);

            // Console.WriteLine(src[1,1]);
            // Console.WriteLine(img1[10, 10]);

            // Console.ReadLine();


        }
    }
}

/* IDEAS: 
 * Need "seekToWards" variables, up, right eg.
 * Indicate crossways on picture in order to apply pathfinding algorithm.
 * Crossways might also be detectable by checking the amount of nearby yellow pixels.
 * Calculate nodelengths by a^2+b^2=c^2
 * IF PIXEL == RED YELLOW OR ORANGE --- PIXEL IS WALKABLE
 * CHECK PROGRAM MED 2 RØDE PIXELS I SAMME Y-CORD
 */